package com.example.library_demo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Eric
 * @since 2024-11-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("l_card")
public class Card implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "card_id", type = IdType.ID_WORKER)
    private Long cardId;

    private BigDecimal balance;

    private String cardNum;

    private Long userId;

    private LocalDateTime createDatetime;


}
